<template>
	<view class="home">	
		<home-template :list="indexModel"></home-template>
	</view>
</template>

<script>
	import { mapGetters } from 'vuex'
	import HomeTemplate from './components/index'
	export default {
		name: 'home',
		components: { HomeTemplate },
		computed: {
			...mapGetters([
				'indexModel',
				'isUpdate'
			])
		},
		watch: {
			isUpdate (val, oldval) {
				if (val) uni.hideTabBar()
			}
		}
	}
</script>